
package com.tiancheng.trade.order.configuration;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

/**
 * 订单中心配置
 */
@Getter
@Setter
@Configuration
@RefreshScope
@ConfigurationProperties(prefix = "order")
public class OrderCenterConfigProperties {

    private MainMerchant mainMerchant;
    /**
     * 收银台页面
     */
    private String cashRegisterUrl;

    @Data
    public static class MainMerchant{
        /**
         * 商户编码
         */
        private String code;
        /**
         * 商户名称
         */
        private String name;
    }

}
